/**
 * 
 */
package com.google.code.cisx.wfe.events;

import com.google.code.cisx.wfe.model.Place;

/**
 * @author <a href='mailto:rthakur@bravurasolutions.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id$
 */
public class PlaceEvent extends TypedEvent<Place> {

    public enum PlaceEventType implements EventType {

        /**
         * Implies that a Token has been added to a Place.
         */
        TOKEN_ADDED("Token Added"),

        /**
         * Implies that a Token has been removed from a Place.
         */
        TOKEN_DELETED("Token Deleted");

        /**
         * Place event expressed as string.
         */
        private String type;

        /**
         * @param type
         */
        private PlaceEventType(String type) {
            this.type = type;
        }

        @Override
        public String asString() {
            return type;
        }
    }

    public PlaceEvent(Place source, EventType type) {
        super(source, type);
    }

}
